// 订阅转化率请求体
export type SubConversionRateReq = {
  stepType: number;
  startTime: string;
  endTime: string;
  isNeedSumCon: boolean;
};

// 订阅转化率请求体
export type TenantDistributionReq = {
  startTime: string;
  endTime: string;
};

// 转化率 Map 定义：<时间点，转化率>
export type ConversionMap = {
  time: string;
  conversionRate: number;
};

// 订阅转化率响应体
export interface SubConversionRateResp {
  totalConversion: number;
  stepConversion: Array<ConversionMap>;
}

export type distributionMap = {
  labelName: string;
  num: number;
};

export interface TenantDistributionResp {
  labelName: string;
  num: number;
}
